package com.jrtc.api.controller.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;

@Component
public class Scheduler {
    private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");

    final static Logger log = LoggerFactory.getLogger(Scheduler.class);
    @Scheduled(fixedRate = 1000 * 60 * 10)
    public void test() {
        //定时任务方法体
        log.info("日志打印");
    }

}
